package com.njtoyo.taxi.admin.mongo.entity.primary;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @Author Dell
 * @Date 2018/10/11 16:57
 */
@Document(collection = "test")
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class TestMongo implements Serializable {

    /**
     * 主键
     */
    @Id
    private ObjectId id;

    private String name;

}
